#include <iostream>
using namespace std;

// Definition for singly-linked list.
struct ListNode {
    int val;
    ListNode* next;
    ListNode(int x) : val(x), next(NULL) {}
};
 

class Solution {
public:
    void deleteNode(ListNode* node) {
        node->val = node->next->val; 
        ListNode* delenode = node->next; 
        node->next = node->next->next; 
        delete delenode; 
    }
};

int main()
{
    return 0;
}